package AntPheromones;

/**
PiledObject.java

Object of this class can be put on the grid and shown on GUI interface. 
*/

import java.awt.BasicStroke;
import java.awt.Color;

import uchicago.src.sim.gui.Drawable;
import uchicago.src.sim.gui.SimGraphics;

public class NonAntObject implements ObjectInGrid, Drawable {
	//class variables
	public  static TorusWorld    	world;  	// where the agents live
	public  static Model		   	model;      // the model "in charge"
	public static BasicStroke      bugEdgeStroke = new BasicStroke( 2.0f );
	//instance variables
	public int 			x, y;		// cache the ant's x,y location
	public Color		myColor;    // color of this agent
	
	public NonAntObject () {
		x = 0;
		y = 0;
		myColor = Color.gray;
	}
	
	public static void setWorld( TorusWorld w ) {	world = w; }
	public static void setModel( Model m ) { model = m; }
	
	public int getX() { return x; }
	public void setX( int i ) { x = i; }
	public int getY() { return y; }
	public void setY( int i ) { y = i; }
	public void setColor (Color c) {myColor = c;}
	
	public void draw( SimGraphics g ) {
	   	g.drawFastRoundRect( myColor );
	    g.drawRectBorder( bugEdgeStroke, myColor );
    }
}